package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.mapper.CategoryMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DishService extends IService<Dish>{
public void saveWithFlavor(DishDto dishDto);
public DishDto getByIdWithFlavor(Long id);
//更新菜品信息,同时更新对应的口味信息
  void updateWithFlavor(DishDto dishDto);

    @Transactional
    void removeWithFlavor(List<Long> ids);
}



